<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<h:head>
		<title>Component Criteria</title>
		<link rel="stylesheet" type="text/css" href="../css/style.css"/>
	</h:head>
	
	<h:body>
		<h:form>
		<h4>Busqueda de Componente:</h4>
		
		  Select Destination Market: 
            <h:selectOneMenu value="#{carComponentManager.dmActual}">
            	<f:selectItem itemLabel="Select Destination Market" itemValue="" />
                <f:selectItems value="#{carComponentManager.lstDestinationMarket}"/>
                <f:ajax event="change" render="cbxCarModel" listener="#{carComponentManager.getCarModelByDestinationMarket}"/>
            </h:selectOneMenu><br/>
            <br/>
            
            Select Car Model: <h:selectOneMenu id="cbxCarModel" value="#{carComponentManager.cmActual}">
            	<f:selectItem itemLabel="Select Car Model" itemValue="" />
                <f:selectItems value="#{carComponentManager.lstCarModel}"/>
                <f:ajax event="change" render="cbxCarComponent" listener="#{carComponentManager.getCarComponentByCarModel}" />
            </h:selectOneMenu><br/>
            <br/>
            
            Select Category: <h:selectOneMenu id="cbxCategory" value="#{carComponentManager.catActual}">
            	<f:selectItem itemLabel="Select Category" itemValue="" />
                <f:selectItems value="#{carComponentManager.lstCategory}"/>
                <f:ajax event="change" render="cbxCarComponent" listener="#{carComponentManager.getCarComponentByCarModel}" />
            </h:selectOneMenu><br/>
            <br/>
            
            Select Car Component: <h:selectOneMenu id="cbxCarComponent" value="#{carComponentManager.cActual}">
            	<f:selectItem itemLabel="Select Car Component" itemValue="" />
                <f:selectItems value="#{carComponentManager.lstComponent}"/>
            </h:selectOneMenu><br/>
            <br/>
            
        </h:form>
	</h:body>
</html>
